package com.ccrfid.rmc6.entity.vehicle;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "v_vehicle_entry_record")
public class VehicleEntryRecordView {
    private Long id;
    private Long vehicleId;

    private Long cardNumber;
    private String vehicleSn;
    private String plateNumber;
    private String driverName;
    private String vehicleUse;
    private String vehicleModel;
    private Integer enabled;

    private Integer outside;
    private String company;
    private String visitReason;
    private String linkman;

    private Timestamp entryTime;
    private Timestamp leaveTime;

    @Id
    @Column(name = "id", nullable = false)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "vehicle_id", nullable = false)
    public Long getVehicleId() {
        return vehicleId;
    }

    public void setVehicleId(Long vehicleId) {
        this.vehicleId = vehicleId;
    }

    @Basic
    @Column(name = "card_number", nullable = true)
    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }

    @Basic
    @Column(name = "vehicle_sn", nullable = true, length = 45)
    public String getVehicleSn() {
        return vehicleSn;
    }

    public void setVehicleSn(String vehicleSn) {
        this.vehicleSn = vehicleSn;
    }

    @Basic
    @Column(name = "plate_number", nullable = true, length = 45)
    public String getPlateNumber() {
        return plateNumber;
    }

    public void setPlateNumber(String plateNumber) {
        this.plateNumber = plateNumber;
    }

    @Basic
    @Column(name = "driver_name", nullable = true, length = 45)
    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    @Basic
    @Column(name = "vehicle_use", nullable = true, length = 100)
    public String getVehicleUse() {
        return vehicleUse;
    }

    public void setVehicleUse(String vehicleUse) {
        this.vehicleUse = vehicleUse;
    }

    @Basic
    @Column(name = "vehicle_model", nullable = true, length = 100)
    public String getVehicleModel() {
        return vehicleModel;
    }

    public void setVehicleModel(String vehicleModel) {
        this.vehicleModel = vehicleModel;
    }

    @Basic
    @Column(name = "company", nullable = true, length = 45)
    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    @Basic
    @Column(name = "visit_reason", nullable = true, length = 45)
    public String getVisitReason() {
        return visitReason;
    }

    public void setVisitReason(String visitReason) {
        this.visitReason = visitReason;
    }

    @Basic
    @Column(name = "linkman", nullable = true, length = 45)
    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    @Basic
    @Column(name = "is_outside", nullable = false)
    public Integer getOutside() {
        return outside;
    }

    public void setOutside(Integer outside) {
        this.outside = outside;
    }

    @Basic
    @Column(name = "is_enabled", nullable = false)
    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    @Basic
    @Column(name = "entry_time", nullable = false)
    public Timestamp getEntryTime() {
        return entryTime;
    }

    public void setEntryTime(Timestamp entryTime) {
        this.entryTime = entryTime;
    }

    @Basic
    @Column(name = "leave_time", nullable = true)
    public Timestamp getLeaveTime() {
        return leaveTime;
    }

    public void setLeaveTime(Timestamp leaveTime) {
        this.leaveTime = leaveTime;
    }
}
